package com.ml.mall.entity.payinfo;

import com.baomidou.mybatisplus.annotation.*;

import java.io.Serializable;
import java.util.Date;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

/**
 *
 * @TableName sys_payment_record
 */
@TableName(value ="sys_payment_record")
@Data
public class SysPaymentRecord implements Serializable {
    /**
     * 主键id
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /**
     * 创建时间
     */
    @TableField(value = "create_at", fill = FieldFill.INSERT)
    @JsonFormat(timezone = "GMT+8")
    private Date createAt;

    /**
     * 更新时间
     */
    @TableField(value = "update_at", fill = FieldFill.INSERT_UPDATE)
    @JsonFormat(timezone = "GMT+8")
    private Date updateAt;

    /**
     * 订单号
     */
    @TableField(value = "pay_id")
    private Long payId;

    /**
     * 支付状态 0 失败 1 成功 2 待定 3 超时
     */
    @TableField(value = "state")
    private Integer state;

    /**
     * 电商模式 0.B2B 1.B2C
     */
    @TableField(value = "gateway")
    private Integer gateway;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;
}
